-- GENERATED SPELL FOR [Meatpie] --


function spell0_28188(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28188', 5276, 1)
end

function spell1_28188(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15578,pUnit)
pUnit:RegisterEvent('Sorts_28188', 594, 1)
end

function spell2_28188(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(49807,pUnit)
pUnit:RegisterEvent('Sorts_28188', 2000, 1)
end

function Sorts_28188(pUnit, Event)
local choix_sorts_28188 = math.random(0, 2)
if choix_sorts_28188 == 0 then
pUnit:RegisterEvent('spell0_28188', 1, 1)
end
if choix_sorts_28188 == 1 then
pUnit:RegisterEvent('spell1_28188', 1, 1)
end
if choix_sorts_28188 == 2 then
pUnit:RegisterEvent('spell2_28188', 1, 1)
end
end

function mob28188_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28188', math.random(1500, 3000), 1)
end

function mob28188_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28188_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28188_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28188, 1, 'mob28188_Action')
RegisterUnitEvent(28188, 2, 'mob28188_Leave')
RegisterUnitEvent(28188, 3, 'mob28188_Kill')
RegisterUnitEvent(28188, 4, 'mob28188_Die')
